<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./lib/18/react.development.js"></script>
  <script src="./lib/18/react-dom.development.js"></script>
  <script src="./lib/babel.min.js"></script>
  <style>
    .title {
      color:blueviolet;
      font-size: 40px;
    }
  </style>
</head>
<body>
  <div id="app"></div>
  <script type="text/babel"> /* 声明使用babel进行编译 jsx => js*/

    const color = 'blue'

    const vdom = (
      <div>
        <p style={{color, fontSize: 30}}>style...</p>  
        <p className="title">class...</p>
      </div>
    )

    ReactDOM.createRoot(document.getElementById('app')).render(vdom)

  </script>
</body>
</html>